﻿@model   RBS.Core.Model.manager 
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>修改密码</title>
  
     <script type="text/javascript">
         

         $(document).ready(function () { 
             //$("#form1").initValidform(); 
             $("#btnSubmit11").click(login); 
             function login() {
                 var datas = $("#form1").serialize();
                 var url = '@Url.Action("manager_pwd")';
                $.ajax({
                    url: url,
                    type: "post",
                    dataType: 'json',
                    data: datas,
                    success: function (data) {
                        if (data.IsSuccess) {
                            parent.jsprint("修改密码", "manager_pwd", "密码修改成功！");
                        }
                        else { 
                            parent.jsprint("修改密码", "manager_pwd", data.Msg);
                        }
                    }
                });
                return false;
            }

            });


    </script>
</head>
    <body>
        
@*              @using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>人员信息</legend>
        @Html.HiddenFor(model => model.id)
        <div class="editor-label">
            @Html.LabelFor(model => model.user_name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.user_name)
            @Html.ValidationMessageFor(model => model.user_name)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.password)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.telephone)
            @Html.ValidationMessageFor(model => model.telephone)
        </div>
        <p>
            <input type="submit" value="保存" />
        </p>
    </fieldset>
}
    *@    

        <form id="form1"  method="post">
            <!--导航栏-->
            <div class="location">
                <a href="javascript:history.back(-1);" class="back"><i></i><span>返回上一页</span></a>
                <a href="@Url.Action("Main","Home")" class="home"><i></i><span>首页</span></a>
                <i class="arrow"></i>
                <span>修改密码</span>
            </div>
            <div class="line10"></div>
            <!--/导航栏-->

            <!--内容-->
            <div class="content-tab-wrap">
                <div id="floatHead" class="content-tab">
                    <div class="content-tab-ul-wrap">
                        <ul>
                            <li><a href="javascript:;" onclick="tabs(this);" class="selected">修改密码</a></li>
                        </ul>
                    </div>
                </div>
            </div>

            <div class="tab-content">
            
      

                <dl>
                    <dt>用户名</dt>
                    <dd><input type="text" ID="txtUserName" class ="input normal" ReadOnly="true" /></dd>
                </dl>
                <dl>
                    <dt>旧登录密码</dt>
                    <dd><input ID="txtOldPassword" type="password" class="input normal" TextMode="Password" datatype="*6-20" nullmsg="请输入旧密码" errormsg="密码范围在6-20位之间" sucmsg=" "></input> <span class="Validform_checktip">*</span></dd>
                </dl>
                <dl>
                    <dt>新登录密码</dt>
                    <dd><input  ID="txtPassword" type="password" class="input normal" TextMode="Password" datatype="*6-20" nullmsg="请输入新密码" errormsg="密码范围在6-20位之间" sucmsg=" "></input> <span class="Validform_checktip">*</span></dd>
                </dl>
                <dl>
                    <dt>新确认密码</dt>
                    <dd><input ID="txtPassword1" type="password" class="input normal" TextMode="Password" datatype="*" recheck="txtPassword" nullmsg="请再输入一次新密码" errormsg="两次输入的密码不一致" sucmsg=" "></input> <span class="Validform_checktip">*</span></dd>
                </dl>
                <dl>
                    <dt>姓名</dt>
                    <dd><input ID="txtRealName"type="text"  class="input normal"></input></dd>
                </dl>
                <dl>
                    <dt>电话</dt>
                    <dd><input ID="txtTelephone" type="text"  class="input normal"></input></dd>
                </dl>
                <dl>
                    <dt>邮箱</dt>
                    <dd><input ID="txtEmail" type="text"  class="input normal"></input></dd>
                </dl>
            </div>
            <!--/内容-->

            <!--工具栏-->
            <div class="page-footer">
                <div class="btn-list">
                    <input type="submit" ID="btnSubmit" value="提交保存" class="btn"  />
                    <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript:history.back(-1);" />
                </div>
                <div class="clear"></div>
            </div>
            <!--/工具栏-->
        </form>
    </body>
</html>
